package com.jumi.microservice.service.jd.timingtask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class JdOrderTiMingTask {
    @Resource
    TiMingTaskServiceImpl tiMingTaskService;

    private static final Logger logger = LoggerFactory.getLogger(JdOrderTiMingTask.class);


    @Scheduled(cron = "0 0/1 * * * *")
    public void JdOrderTask() throws Exception {
        tiMingTaskService.orderTask();
        ;
    }

    @Scheduled(cron = "0 0 0/1 * * *")
    public void JdUpdateOrder() throws Exception {
        tiMingTaskService.orderTiMingTask();
    }
}
